package com.zhangjie.repository;

import com.zhangjie.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    //根据医院，科室编号查询科室名字
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
